package com.xuecheng.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.xuecheng.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * - @author by 姜暄煊
 * - @Date 12.7
 * - @Description
 */
public interface UserMapper extends BaseMapper<User> {
    @Override
    int insert(User entity);

    @Override
    User selectById(Serializable id);

    User findById(Long id);

    int updateById(@Param(Constants.ENTITY) User entity);

    int update(@Param(Constants.ENTITY) User entity, @Param(Constants.WRAPPER) Wrapper<User> updateWrapper);
}
